﻿<%@ Page Language="C#" MasterPageFile="~/Navigations.Master" AutoEventWireup="true" CodeBehind="MediaManager.aspx.cs" Inherits="WeChat.Manager.MediaManager" Title="素材管理" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script type="text/javascript" language="javascript">
        function tips(){
            $("#myTip").modal("show");
        }
        function test(){
            alert("ddddd");
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    
      <div class="container" style="font-family:微软雅黑">
      <div class="row">
        <div class="col-md-1"></div>
        <div class="col-md-10 col-sm-12">
        <div class="panel panel-primary">
           <div class="panel-heading">
              <h3 class="panel-title">查看素材</h3>
           </div>
           <div class="panel-body ">
           <div class="form-inline">
            <div class="form-group form-inline">
                <asp:DropDownList ID="DropDownList1" runat="server" CssClass="form-control" AutoPostBack="true" onselectedindexchanged="selectedIndexChanged">
                    <asp:ListItem Text="全部"></asp:ListItem>
                    <asp:ListItem Text="图文素材"></asp:ListItem>
                    <asp:ListItem Text="图片素材"></asp:ListItem>
                    <asp:ListItem Text="视频素材"></asp:ListItem>
                    <asp:ListItem Text="语音素材"></asp:ListItem>
                </asp:DropDownList>
            </div>
           </div>
        </div>
        <asp:Repeater id="mediaShow" runat="server" onitemcommand="mediaShow_ItemCommand">
                    <HeaderTemplate>
                    <table class="table table-hover">
                    <tr>
                    <th>素材类型</th>
                    <th>素材名</th>
                    <th>素材ID</th>
                    <th>更新时间</th>
                    <th>操作</th>
                    </tr>
                    </HeaderTemplate>

                    <ItemTemplate>
                    <tr>
                    <td><%# Eval("type")%></td>
                    <td><%# Eval("title")%></td>
                    <td><%# Eval("media_id")%></td>
                    <td><%# Eval("update_time")%></td>
                    <td><asp:ImageButton ID="kefudel" runat="server" CommandArgument='<%# Eval("media_id")%>' CssClass="btn" Height="27px" 
                    OnClientClick='return confirm("确认要删除吗？")' CommandName="delete" ImageUrl="~/images/del.jpg" ToolTip="删除" /></td>
                    </tr>
                    </ItemTemplate>

                    <FooterTemplate>
                    </table>
                    </FooterTemplate>
                 </asp:Repeater>
        </div>
        </div>
        <div class="col-md-1"></div>
    </div>
    </div>

   <!--rating modal's content-->
<div class="modal fade" id="myTip" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
   <div class="modal-dialog">
      <div class="modal-content">
          <div class="modal-header">
              <button type="button" class="close" data-dismiss="modal">&times;</button>
              <h4>提示</h4>
            </div><!--Modal header-->
            <div class="modal-body"><h3><asp:Label ID="Label1" runat="server"></asp:Label></h3>
            </div><!--Modal body-->
            <div class="modal-footer">
              <a href="#" class="btn btn-default" data-dismiss="modal" >关闭</a>
            </div><!--Modal footer-->
      </div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>
</div>
</asp:Content>
